<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonGallery类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_gallery.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-slots">Public 槽</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-slots">Protected 槽</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_s_a_ribbon_gallery-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonGallery类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>Gallery控件  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_gallery_8h_source.html">SARibbonGallery.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonGallery 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_gallery.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_gallery_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The SARibbonGalleryPrivate class  <a href="class_s_a_ribbon_gallery_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-slots" name="pub-slots"></a>
Public 槽</h2></td></tr>
<tr class="memitem:a2b419e470b1685af58669ecc165ba8d5" id="r_a2b419e470b1685af58669ecc165ba8d5"><td class="memItemLeft" align="right" valign="top"><a id="a2b419e470b1685af58669ecc165ba8d5" name="a2b419e470b1685af58669ecc165ba8d5"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>pageUp</b> ()</td></tr>
<tr class="memdesc:a2b419e470b1685af58669ecc165ba8d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">下翻页 <br /></td></tr>
<tr class="separator:a2b419e470b1685af58669ecc165ba8d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abce4038c365268b09a3a66a4584afa19" id="r_abce4038c365268b09a3a66a4584afa19"><td class="memItemLeft" align="right" valign="top"><a id="abce4038c365268b09a3a66a4584afa19" name="abce4038c365268b09a3a66a4584afa19"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>pageDown</b> ()</td></tr>
<tr class="memdesc:abce4038c365268b09a3a66a4584afa19"><td class="mdescLeft">&#160;</td><td class="mdescRight">上翻页 <br /></td></tr>
<tr class="separator:abce4038c365268b09a3a66a4584afa19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a440b3b3e4c0ad4ee60e251f1ec07ebcf" id="r_a440b3b3e4c0ad4ee60e251f1ec07ebcf"><td class="memItemLeft" align="right" valign="top"><a id="a440b3b3e4c0ad4ee60e251f1ec07ebcf" name="a440b3b3e4c0ad4ee60e251f1ec07ebcf"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>showMoreDetail</b> ()</td></tr>
<tr class="memdesc:a440b3b3e4c0ad4ee60e251f1ec07ebcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示更多触发，默认弹出内部管理的SARibbonGalleryViewport，用户可重载此函数实现自定义的弹出 <br /></td></tr>
<tr class="separator:a440b3b3e4c0ad4ee60e251f1ec07ebcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:ade00db3602e93ec2ee2735c6d05f09c0" id="r_ade00db3602e93ec2ee2735c6d05f09c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ade00db3602e93ec2ee2735c6d05f09c0">triggered</a> (QAction *action)</td></tr>
<tr class="memdesc:ade00db3602e93ec2ee2735c6d05f09c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">转发管理的SARibbonGalleryGroup::triggered 所有加入SARibbonGallery的action都会被一个QActionGroup管理,可以通过  <br /></td></tr>
<tr class="separator:ade00db3602e93ec2ee2735c6d05f09c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa61bd8f142f1ea29fc2ab3a95a845ad6" id="r_aa61bd8f142f1ea29fc2ab3a95a845ad6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa61bd8f142f1ea29fc2ab3a95a845ad6">hovered</a> (QAction *action)</td></tr>
<tr class="memdesc:aa61bd8f142f1ea29fc2ab3a95a845ad6"><td class="mdescLeft">&#160;</td><td class="mdescRight">转发管理的SARibbonGalleryGroup::hovered  <br /></td></tr>
<tr class="separator:aa61bd8f142f1ea29fc2ab3a95a845ad6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad4e3dc92b1bdcc2e4f8d211230aaeece" id="r_ad4e3dc92b1bdcc2e4f8d211230aaeece"><td class="memItemLeft" align="right" valign="top"><a id="ad4e3dc92b1bdcc2e4f8d211230aaeece" name="ad4e3dc92b1bdcc2e4f8d211230aaeece"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGallery</b> (QWidget *parent=nullptr)</td></tr>
<tr class="separator:ad4e3dc92b1bdcc2e4f8d211230aaeece"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b042b7b6bf1303aae8cea36bce112c6" id="r_a1b042b7b6bf1303aae8cea36bce112c6"><td class="memItemLeft" align="right" valign="top"><a id="a1b042b7b6bf1303aae8cea36bce112c6" name="a1b042b7b6bf1303aae8cea36bce112c6"></a>
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const override</td></tr>
<tr class="separator:a1b042b7b6bf1303aae8cea36bce112c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0291d6d9dc19b710f9a49a0ff515fb" id="r_aca0291d6d9dc19b710f9a49a0ff515fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aca0291d6d9dc19b710f9a49a0ff515fb">addGalleryGroup</a> ()</td></tr>
<tr class="memdesc:aca0291d6d9dc19b710f9a49a0ff515fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取一个空白SARibbonGalleryGroup  <br /></td></tr>
<tr class="separator:aca0291d6d9dc19b710f9a49a0ff515fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec87c00cb93d790bd8e0283d71989b79" id="r_aec87c00cb93d790bd8e0283d71989b79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aec87c00cb93d790bd8e0283d71989b79">addGalleryGroup</a> (<a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *group)</td></tr>
<tr class="memdesc:aec87c00cb93d790bd8e0283d71989b79"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一组SARibbonGalleryGroup  <br /></td></tr>
<tr class="separator:aec87c00cb93d790bd8e0283d71989b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac02b793096d17a63852d291bf1496e3a" id="r_ac02b793096d17a63852d291bf1496e3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac02b793096d17a63852d291bf1496e3a">addCategoryActions</a> (const QString &amp;title, QList&lt; QAction * &gt; actions)</td></tr>
<tr class="memdesc:ac02b793096d17a63852d291bf1496e3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一组actions  <br /></td></tr>
<tr class="separator:ac02b793096d17a63852d291bf1496e3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d86603461f5ff564e532bfcd7e44b8" id="r_ad7d86603461f5ff564e532bfcd7e44b8"><td class="memItemLeft" align="right" valign="top"><a id="ad7d86603461f5ff564e532bfcd7e44b8" name="ad7d86603461f5ff564e532bfcd7e44b8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentViewGroup</b> (<a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *group)</td></tr>
<tr class="separator:ad7d86603461f5ff564e532bfcd7e44b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a984534390126a8525fae2b60842cc62e" id="r_a984534390126a8525fae2b60842cc62e"><td class="memItemLeft" align="right" valign="top"><a id="a984534390126a8525fae2b60842cc62e" name="a984534390126a8525fae2b60842cc62e"></a>
<a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>currentViewGroup</b> () const</td></tr>
<tr class="separator:a984534390126a8525fae2b60842cc62e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3652278887df13965bf44395af2559c5" id="r_a3652278887df13965bf44395af2559c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_gallery_viewport.html">SARibbonGalleryViewport</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3652278887df13965bf44395af2559c5">getPopupViewPort</a> () const</td></tr>
<tr class="memdesc:a3652278887df13965bf44395af2559c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取弹出窗口  <br /></td></tr>
<tr class="separator:a3652278887df13965bf44395af2559c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a376513d9e28c21272a2ef57aae084d48" id="r_a376513d9e28c21272a2ef57aae084d48"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a376513d9e28c21272a2ef57aae084d48">setGalleryButtonMaximumWidth</a> (int w)</td></tr>
<tr class="memdesc:a376513d9e28c21272a2ef57aae084d48"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置最右边三个控制按钮的最大宽度（默认15）  <br /></td></tr>
<tr class="separator:a376513d9e28c21272a2ef57aae084d48"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-slots" name="pro-slots"></a>
Protected 槽</h2></td></tr>
<tr class="memitem:aaf131c4ccc98363994d4d1be54f84fe7" id="r_aaf131c4ccc98363994d4d1be54f84fe7"><td class="memItemLeft" align="right" valign="top"><a id="aaf131c4ccc98363994d4d1be54f84fe7" name="aaf131c4ccc98363994d4d1be54f84fe7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>onItemClicked</b> (const QModelIndex &amp;index)</td></tr>
<tr class="separator:aaf131c4ccc98363994d4d1be54f84fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07da6fec45fef9febeea8d897bbf6606" id="r_a07da6fec45fef9febeea8d897bbf6606"><td class="memItemLeft" align="right" valign="top"><a id="a07da6fec45fef9febeea8d897bbf6606" name="a07da6fec45fef9febeea8d897bbf6606"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>onTriggered</b> (QAction *action)</td></tr>
<tr class="separator:a07da6fec45fef9febeea8d897bbf6606"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a52dcdee020bbe8ad55077abd1e719304" id="r_a52dcdee020bbe8ad55077abd1e719304"><td class="memItemLeft" align="right" valign="top"><a id="a52dcdee020bbe8ad55077abd1e719304" name="a52dcdee020bbe8ad55077abd1e719304"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>resizeEvent</b> (QResizeEvent *event) override</td></tr>
<tr class="separator:a52dcdee020bbe8ad55077abd1e719304"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2829bf6fe2055ff8be66c7693c1266af" id="r_a2829bf6fe2055ff8be66c7693c1266af"><td class="memItemLeft" align="right" valign="top"><a id="a2829bf6fe2055ff8be66c7693c1266af" name="a2829bf6fe2055ff8be66c7693c1266af"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>paintEvent</b> (QPaintEvent *event) override</td></tr>
<tr class="separator:a2829bf6fe2055ff8be66c7693c1266af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Gallery控件 </p>
<p>Gallery控件是由一个当前激活的</p><dl class="section see"><dt>参见</dt><dd><a class="el" href="class_s_a_ribbon_gallery_group.html" title="Gallery的组">SARibbonGalleryGroup</a> 和弹出的 </dd>
<dd>
<a class="el" href="class_s_a_ribbon_gallery_viewport.html" title="SARibbonGallery的Viewport class">SARibbonGalleryViewport</a> 组成</dd>
<dd>
<a class="el" href="class_s_a_ribbon_gallery_group.html" title="Gallery的组">SARibbonGalleryGroup</a> 是继承</dd>
<dd>
QListView actions通过icon展示出来，相关的属性可以按照QListView设置</dd>
<dd>
<a class="el" href="class_s_a_ribbon_gallery_viewport.html" title="SARibbonGallery的Viewport class">SARibbonGalleryViewport</a> 是一个内部有垂直布局的窗体，在弹出激活时，把管理的SARibbonGalleryGroup都展示出来</dd></dl>
<p>示例如下： </p><div class="fragment"><div class="line"><a class="code hl_class" href="class_s_a_ribbon_gallery.html">SARibbonGallery</a>* gallery = pannel1-&gt;addGallery();</div>
<div class="line">QList&lt; QAction* &gt; galleryActions;</div>
<div class="line">...create many actions ...</div>
<div class="line">SARibbonGalleryGroup* group1 = gallery-&gt;<a class="code hl_function" href="#ac02b793096d17a63852d291bf1496e3a">addCategoryActions</a>(tr(<span class="stringliteral">&quot;Files&quot;</span>), galleryActions);</div>
<div class="line">galleryActions.clear();</div>
<div class="line">...create many actions ...</div>
<div class="line">gallery-&gt;addCategoryActions(tr(<span class="stringliteral">&quot;Apps&quot;</span>), galleryActions);</div>
<div class="line">gallery-&gt;setCurrentViewGroup(group1);</div>
<div class="ttc" id="aclass_s_a_ribbon_gallery_html"><div class="ttname"><a href="class_s_a_ribbon_gallery.html">SARibbonGallery</a></div><div class="ttdoc">Gallery控件</div><div class="ttdef"><b>Definition</b> SARibbonGallery.h:45</div></div>
<div class="ttc" id="aclass_s_a_ribbon_gallery_html_ac02b793096d17a63852d291bf1496e3a"><div class="ttname"><a href="#ac02b793096d17a63852d291bf1496e3a">SARibbonGallery::addCategoryActions</a></div><div class="ttdeci">SARibbonGalleryGroup * addCategoryActions(const QString &amp;title, QList&lt; QAction * &gt; actions)</div><div class="ttdoc">添加一组actions</div><div class="ttdef"><b>Definition</b> SARibbonGallery.cpp:268</div></div>
</div><!-- fragment --> </div><h2 class="groupheader">成员函数说明</h2>
<a id="ac02b793096d17a63852d291bf1496e3a" name="ac02b793096d17a63852d291bf1496e3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac02b793096d17a63852d291bf1496e3a">&#9670;&#160;</a></span>addCategoryActions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> * SARibbonGallery::addCategoryActions </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QList&lt; QAction * &gt;</td>          <td class="paramname"><span class="paramname"><em>actions</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一组actions </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>actions组的名字 </td></tr>
    <tr><td class="paramname">actions</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回SARibbonGalleryGroup，用户可以通过修改SARibbonGalleryGroup属性控制其显示方法 </dd></dl>

</div>
</div>
<a id="aca0291d6d9dc19b710f9a49a0ff515fb" name="aca0291d6d9dc19b710f9a49a0ff515fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca0291d6d9dc19b710f9a49a0ff515fb">&#9670;&#160;</a></span>addGalleryGroup() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> * SARibbonGallery::addGalleryGroup </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取一个空白SARibbonGalleryGroup </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aec87c00cb93d790bd8e0283d71989b79" name="aec87c00cb93d790bd8e0283d71989b79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec87c00cb93d790bd8e0283d71989b79">&#9670;&#160;</a></span>addGalleryGroup() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGallery::addGalleryGroup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *</td>          <td class="paramname"><span class="paramname"><em>group</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一组SARibbonGalleryGroup </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">group</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3652278887df13965bf44395af2559c5" name="a3652278887df13965bf44395af2559c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3652278887df13965bf44395af2559c5">&#9670;&#160;</a></span>getPopupViewPort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_gallery_viewport.html">SARibbonGalleryViewport</a> * SARibbonGallery::getPopupViewPort </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取弹出窗口 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aa61bd8f142f1ea29fc2ab3a95a845ad6" name="aa61bd8f142f1ea29fc2ab3a95a845ad6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa61bd8f142f1ea29fc2ab3a95a845ad6">&#9670;&#160;</a></span>hovered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGallery::hovered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>转发管理的SARibbonGalleryGroup::hovered </p>
<dl class="section note"><dt>注解</dt><dd>此属性需要确保SARibbonGalleryGroup::setMouseTracking(true) </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a376513d9e28c21272a2ef57aae084d48" name="a376513d9e28c21272a2ef57aae084d48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a376513d9e28c21272a2ef57aae084d48">&#9670;&#160;</a></span>setGalleryButtonMaximumWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGallery::setGalleryButtonMaximumWidth </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置最右边三个控制按钮的最大宽度（默认15） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ade00db3602e93ec2ee2735c6d05f09c0" name="ade00db3602e93ec2ee2735c6d05f09c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade00db3602e93ec2ee2735c6d05f09c0">&#9670;&#160;</a></span>triggered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGallery::triggered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>转发管理的SARibbonGalleryGroup::triggered 所有加入SARibbonGallery的action都会被一个QActionGroup管理,可以通过 </p>
<dl class="section see"><dt>参见</dt><dd>getActionGroup 获取到对应的actiongroup </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_gallery_8h_source.html">SARibbonGallery.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonGallery.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_gallery.html">SARibbonGallery</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
